/**
 * jims
 */
package com.jims.master.modules.operation.entity;

import com.jims.master.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.beans.Transient;

/**
 * 手术费用登记Entity
 * @author ZhuQ
 * @version 2017-04-12
 */
public class OperationCost extends DataEntity<OperationCost> {
	
	private static final long serialVersionUID = 1L;
	private String patientId;		// 病人ID
	private String inoroutFlag;		// 住院/门诊
	private String visitId;		// 住院ID
    private String masterId;    //手术登记主表Id
	private String clinicId;		// 诊疗项目Id
	private String storageId;		// 领药库房
	private Double amount;		// 数量
	private String orderDept;		// 开单科室
	private String orderDoctor;		// 开单医生
	private String performDept;		// 执行科室(护理单元)
	private String performPerson;		// 执行人
	private String deptStayed;		// 所在科室
	private String wardCode;		// 所在病区
    private String drugOutFlag;      //是否生成领药单
	private String patientName;   //患者名称
	private String itemClass;		// 诊疗项目分类
	private String itemName;		// 诊疗项目名称
	private String sum;			//合计
    private String prescFlag;   //生成领药单标识
    private String itemSpec;
    private String supplierName;
    private String itemUnits;
    private String price;
    private String cost;

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getItemUnits() {
        return itemUnits;
    }

    public void setItemUnits(String itemUnits) {
        this.itemUnits = itemUnits;
    }

    public String getItemSpec() {
        return itemSpec;
    }

    public void setItemSpec(String itemSpec) {
        this.itemSpec = itemSpec;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    @Transient
	public String getSum() {
		return sum;
	}
	@Transient
	public void setSum(String sum) {
		this.sum = sum;
	}
	@Transient
	public String getItemClass() {
		return itemClass;
	}
	@Transient
	public void setItemClass(String itemClass) {
		this.itemClass = itemClass;
	}
	@Transient
	public String getItemName() {
		return itemName;
	}
	@Transient
	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	@Transient
	public String getPatientName() {
		return patientName;
	}
	@Transient
	public void setPatientName(String patientName) {
		this.patientName = patientName;
	}

	public OperationCost() {
		super();
	}

	public OperationCost(String id){
		super(id);
	}

	@Length(min=1, max=64, message="病人ID长度必须介于 1 和 64 之间")
	public String getPatientId() {
		return patientId;
	}

	public void setPatientId(String patientId) {
		this.patientId = patientId;
	}
	
	@Length(min=1, max=1, message="住院/门诊长度必须介于 1 和 1 之间")
	public String getInoroutFlag() {
		return inoroutFlag;
	}

	public void setInoroutFlag(String inoroutFlag) {
		this.inoroutFlag = inoroutFlag;
	}
	
	@Length(min=1, max=64, message="住院ID长度必须介于 1 和 64 之间")
	public String getVisitId() {
		return visitId;
	}

	public void setVisitId(String visitId) {
		this.visitId = visitId;
	}
	
	@Length(min=0, max=64, message="诊疗项目Id长度必须介于 0 和 64 之间")
	public String getClinicId() {
		return clinicId;
	}

	public void setClinicId(String clinicId) {
		this.clinicId = clinicId;
	}
	
	@Length(min=0, max=64, message="领药库房长度必须介于 0 和 64 之间")
	public String getStorageId() {
		return storageId;
	}

	public void setStorageId(String storageId) {
		this.storageId = storageId;
	}
	
	@NotNull(message="数量不能为空")
	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}
	
	@Length(min=1, max=64, message="开单科室长度必须介于 1 和 64 之间")
	public String getOrderDept() {
		return orderDept;
	}

	public void setOrderDept(String orderDept) {
		this.orderDept = orderDept;
	}
	
	@Length(min=1, max=64, message="开单医生长度必须介于 1 和 64 之间")
	public String getOrderDoctor() {
		return orderDoctor;
	}

	public void setOrderDoctor(String orderDoctor) {
		this.orderDoctor = orderDoctor;
	}
	
	@Length(min=1, max=64, message="执行科室(护理单元)长度必须介于 1 和 64 之间")
	public String getPerformDept() {
		return performDept;
	}

	public void setPerformDept(String performDept) {
		this.performDept = performDept;
	}
	
	@Length(min=1, max=64, message="执行人长度必须介于 1 和 64 之间")
	public String getPerformPerson() {
		return performPerson;
	}

	public void setPerformPerson(String performPerson) {
		this.performPerson = performPerson;
	}
	
	@Length(min=1, max=64, message="所在科室长度必须介于 1 和 64 之间")
	public String getDeptStayed() {
		return deptStayed;
	}

	public void setDeptStayed(String deptStayed) {
		this.deptStayed = deptStayed;
	}
	
	@Length(min=1, max=64, message="所在病区长度必须介于 1 和 64 之间")
	public String getWardCode() {
		return wardCode;
	}

	public void setWardCode(String wardCode) {
		this.wardCode = wardCode;
	}

    public String getDrugOutFlag() {
        return drugOutFlag;
    }

    public void setDrugOutFlag(String drugOutFlag) {
        this.drugOutFlag = drugOutFlag;
    }

    public String getMasterId() {
        return masterId;
    }

    public void setMasterId(String masterId) {
        this.masterId = masterId;
    }

    public String getPrescFlag() {
        return prescFlag;
    }

    public void setPrescFlag(String prescFlag) {
        this.prescFlag = prescFlag;
    }
}